#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	vector<int> v = { 1,2,3,4,5 };
	reverse(v.begin(), v.end());
	for (auto num : v) cout << num << " ";
	cout << '\n';
	return 0;
}